package com.xmg.test;

/**
 * @author xmg
 * @Description DIY 第7周作业
 * @email 463364973@qq.com
 * <p>
 * Date:2019/4/7 13:45
 */
public class MyInterface {

    public static void main(String[] args) {
        String s1 = "Hello";
        String s2 = "World";
        print(()->{
            return s1 + s2;
        });
    }

    public static void print(IMyInterface s) {
        System.out.println(s.build());
    }

}
